 local nxResult =  redis.call("setNX" , KEYS[1]  , ARGV[1]) 
 local expResult = redis.call("expire" , KEYS[1] , ARGV[2]) 
 if  nxResult == 1 and expResult == 1   
	 then    
	 return 1 
 else 
	 return 0 
 end 					
	